<?php

/**
 * Copyright 2010 - 2013, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2010 - 2013, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
$this->Html->addCrumb('Home', '/admin');
$this->Html->addCrumb('Lista Usuários', array('action' => 'index'));
$this->Html->addCrumb('Editar Usuários', array());

echo $this->Form->create('Usuarios.Menu', array(
    'inputDefaults' => array(
        'div' => 'form-group',
        'wrapInput' => false,
        'class' => 'form-control'
    ),
    'url' => array($id),
    'class' => 'well'
));
if (count($menu) > 0) {
    foreach ($menu as $key => $value) {
        echo $this->Form->input('Menu.' . $key . '.id', array('label' => $value['Menu']['titulo'], 'value' => $value['Menu']['id'], 'type' => 'checkbox', 'hiddenField' => false));
    }
}
echo $this->Form->button('Salvar', array('class' => 'btn btn-success', 'type' => 'submit', 'icon' => 'fa fa-save'));
echo $this->Form->end();
?>